package cn.org.xiaosheng.server;

import cn.org.xiaosheng.server.annotation.EnableRpcServer;
import cn.org.xiaosheng.server.annotation.RpcServerScan;
import cn.org.xiaosheng.server.manager.RpcServiceManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author XiaoSheng
 * @date 2024/8/22 下午5:26
 */
@EnableRpcServer
@SpringBootApplication
@RpcServerScan
public class RpcServer {
    public static void main(String[] args) {
        //创建服务管理器  启动服务
        new RpcServiceManager("127.0.0.1",9999).start();
        SpringApplication.run(RpcServer.class, args);
    }

}
